package org.ifilm.service;

import java.util.List;

import org.ifilm.dao.NoticeDao;
import org.ifilm.model.UserJobPosting;
import org.ifilm.model.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * Notice Service implementation
 * 
 * @author Mustafa Genc
 *
 */
@Service
@Transactional
public class NoticeServiceImpl implements NoticeService {
	@Autowired
	private NoticeDao noticeDao;

	@Override
	public UserJobPosting createJobPosting(UserJobPosting jobPosting) {
		return noticeDao.createJobPosting(jobPosting);
	}

	@Override
	public List<UserJobPosting> listJobPostings(User user) {
		return noticeDao.listJobPostings(user);
	}
}
